<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
?>
<link rel="stylesheet" href="<?php echo JURI::root().'components/com_shop/assets/'; ?>style.css" type="text/css" />
<?php if($this->state->get('page.show_page_heading')):?>
<div class="item_page_title">
<h2 style="color: white !important;"><?php echo $this->state->get('page.page_title'); ?></h2>
</div>
<?php endif;?>
<?php foreach($this->items as $item):
$link1 = JRoute::_('index.php?option=com_shop&view=employer&id='.$item->id.':'.JApplication::stringURLSafe($item->title));
?>
<div class="list-item-cgt">
<a href="<?php echo $link1;?>" title="<?php echo $item->title; ?>">
<div class="giaothuong-title">
	<?php echo $item->title; ?>
</div>
</a>
<div class="giaothuong-content">
<?php echo $this->getText($item->text,30); ?>
</div>
<div class="info-new-list">
<?php if($result = $this->getCompanyName($item->company)):?>
<div>
	<?php if(!empty($result->vtitle)):
$vlink = JRoute::_('index.php?option=com_shop&view=detail&id='.$result->id.':'.JApplication::stringURLSafe($result->vtitle));
$elink = JRoute::_('index.php?option=com_shop&view=detail&id='.$result->id.':'.JApplication::stringURLSafe($result->etitle));
	?>
	<span><a href="<?php echo $vlink;?>" title="<?php echo $result->vtitle;?>"><?php echo $result->vtitle;?></a></span> | 
    <?php endif;?>
    <?php if(!empty($result->etitle)):?>
	<span><a href="<?php echo $elink;?>" title="<?php echo $result->etitle;?>"><?php echo $result->etitle;?></a></span> |
    <?php endif;?>
    <?php if($address = $this->getAddress($item->address_id)):?>
		<?php if(isset($address[0])):?>
        <?php $add1 = $address[0];?>
        <span><?php echo $add1->title; ?></span> - 
        <?php endif;?>
  		<?php if(isset($address[1])):?>
        <?php $add2 = $address[1];?>
        <span><?php echo $add2->title; ?></span>
        <?php endif;?>
        
    <?php endif;?>
</div>
<?php endif;?>
</div>
</div>
<?php endforeach;?>
<div class="pagination">
<?php echo  $this->pagination->getPagesLinks();?>
</div>